<?php get_header(); ?>
	
	<section class="row loopedPosts">
		<header class="archive-header">
			<h1 class="archive-title text-center"><?php
				if ( is_day() ) :
					printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
				elseif ( is_month() ) :
					printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
				elseif ( is_year() ) :
					printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
				elseif ( is_tag() ) :
					printf( __( 'Tag Archives: %s', 'twentytwelve' ), single_tag_title( '', false ) );
				elseif ( is_category() ) :
					// Do nothing
					printf( __( '%s', 'twentyfourteen' ), single_cat_title( '', false ) );
				else :
					_e( 'Blog', 'twentytwelve' );
				endif;
			?></h1>
		</header>
	
		<div class="post-contents" id="content">
			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
			<?php get_template_part('loop'); ?>
			<?php endwhile; ?>
			<?php endif; ?>
		</div>
		<nav class="column small-12 pagination text-center">
			<div class="column small-12 large-6 text-right nav-previous">
				<?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?>
			</div>
			<div class="column small-12 large-6 text-left nav-next">
				<?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
			</div>
		</nav>
	</section>
<?php get_footer(); ?>